import { ListNofity, listNofitySaga, listNofityState } from './listNofity';
import { ListNotifyResult, listNotifyResultSaga, listNotifyResultState } from './listNotifyResult';
import { combineReducers } from 'redux';
import { fork, all } from 'redux-saga/effects';
const liushiRoutes = [
    { path: '/listNofity', component: ListNofity },
    { path: '/listNotifyResult', component: ListNotifyResult}
]

const liushiMenuList = [
    {
        title: '流失管理',
        key: '/liushi',
        icon: 'book',
        children: [
            {
                title: "客户流失",
                key: '/listNofity',
                icon: 'book'
            },
            {
                title: "提醒结果",
                key: '/listNotifyResult',
                icon: 'book'
            }
        ]
    }
]

const liushiState = combineReducers({
    listNofityState,
    listNotifyResultState

})
function* liushiSaga() {
    yield all([
        fork(listNofitySaga),
        fork(listNotifyResultSaga)
    ])
}

export { liushiMenuList, liushiRoutes, liushiSaga, liushiState };